package com.ulk.systempermission;

import com.ulk.corelib.logic.LogicApplication;
import com.ulk.corelib.utils.log.LogUtils;

/**
 * the system permission application.
 *
 * @author xuxiaohong
 * @date 2016/4/26
 */
public class MainApplication extends LogicApplication {

    @Override
    public String getLogDirName() {
        return "SystemPermission";
    }

    @Override
    public String getDebugSerialPortName() {
        return "/dev/ttyMT1";
    }

    @Override
    public int getDebugSerialPortBaudrate() {
        return 115200;
    }

    @Override
    public boolean getDebugSerialTime() {
        return true;
    }

    @Override
    public void onCreate() {
        super.onCreate();

        LogUtils.open();
    }

    @Override
    public void onTerminate() {
        super.onTerminate();

        LogUtils.close();
    }
}
